<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>素数</title>
    <script>
        for(var a=1;a<100;a++){
            if(a==1){
                continue;
            }else{
                var flag=true;
                for(var b=2;b<a;b++){
                    if(a%b==0){
                        flag=false;
                    }
                }
            }
            if(flag){
                document.write("100以内的素数有:"+a+'<br/>');
            }
        }
    </script>
</head>
<body>

</body>
</html>